<?php
$val = array();
$val = $this->aValues; ?>

<div class="block">
	<div class="block-header">
		<h2>Registration</h2>
	</div>
	<div class="block-content">
		<div class="grid_4 push_2 group_r">
			<form name="registration" id="registration" action="/registration" method="post">

				<div class="cleft">
					<p>
						<div>
							<em class="required">*</em>
							<label for="first_name">First Name</label>
							<input type="text" value="<?php  if (isset($val['first_name'])) echo $val['first_name'];?>" name="first_name" id="first_name" maxlength="255" tabindex="1" />
						</div>
						<?php if(isset($this->aError['first_name'])) { foreach($this->aError['first_name'] as $ErrName => $ErrDescr) { ?>
							<div class="error_msg"><?php echo $ErrDescr; ?></div>
						<?php } } ?>

						<div>
							<em class="required">*</em>
							<label for="last_name" >Last Name</label>
							<input type="text" value="<?php if (isset($val['last_name'])) echo $val['last_name'];?>" name="last_name" id="last_name" maxlength="255" tabindex="2" />
						</div>
						<?php if(isset($this->aError['last_name'])) { foreach($this->aError['last_name'] as $ErrName => $ErrDescr) { ?>
							<div class="error_msg"><?php echo $ErrDescr; ?></div>
						<?php } } ?>

						<div>
							<em class="required">*</em>
							<label for="email">Email address</label>
							<input type="text" value="<?php if (isset($val['email'])) echo $val['email'] ;?>" name="email" id="email" maxlength="255" tabindex="9" />
						</div>
						<?php if(isset($this->aError['email'])) { foreach($this->aError['email'] as $ErrName => $ErrDescr) { ?>
							<div class="error_msg"><?php echo $ErrDescr; ?></div>
						<?php } } ?>


						<div>
							<em class="required">*</em>
							<label for="password">Password</label>
							<input type="password" value="<?php  if (isset($val['password'])) echo $val['password'];?>" name="password" id="password" maxlength="255" tabindex="10" />
						</div>
						<?php if(isset($this->aError['password'])) { foreach($this->aError['password'] as $ErrName => $ErrDescr) { ?>
							<div class="error_msg"><?php echo $ErrDescr; ?></div>
						<?php } } ?>

						<div>
							<em class="required">*</em>
							<label for="re_enter_password">Re-enter password</label>
							<input type="password" value="<?php  if (isset($val['re_enter_password'])) echo $val['re_enter_password'];?>" name="re_enter_password" id="re_enter_password" maxlength="255" tabindex="11" />
						</div>
						<?php if(isset($this->aError['re_enter_password'])) { foreach($this->aError['re_enter_password'] as $ErrName => $ErrDescr) { ?>
							<div class="error_msg"><?php echo $ErrDescr; ?></div>
						<?php } } ?>

					</p>

					<p>
						<div>
							<em class="required">*</em> Items with asterisks are required
						</div>
					</p>
				</div>

				<input class="sexybutton sexysimple sexyblue" type="submit" value="Continue" name="registration_submit" id="registration_submit" tabindex="14" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
</div>